<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			body{
				/* 	background-image: url(img/下载.jpg);
					background-repeat: no-repeat;
					/* 背景随着页面滚动:sroll，默认值
					页面滚动而背景是固定的:fixed */
					/* background-attachment: fixed;
					background-position: right bottom;(横向,纵向) */
					/* 复合写法 
					background:颜色，图片，是否重复，attachment(fixed)，定位/size
					*/
					background: gainsboro url(img/下载.jpg) no-repeat fixed center/50% 50%;
			} 
			.box{
				width: 600px;
				height: 1800px;
				background-color: rgba(255, 135, 25, .4);
				/* transparent透明色 */
				background-color: transparent;
				background-color: #f3b;
			
				/* 背景图片重复显示repeat 
				不重复no-repeat
				repeat-x横向重复
				*/
				background-repeat: repeat-y;
				font-size: 36px;
			}
		</style>
	</head>
	<body>
		<div class="box">这是盒子的内容</div>
	</body>
</html>

